/*!
 * Copyright 2019 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "../styles/colors";

.shopping-cart {
  height: 100%;

  .shopping-cart-header {
  }

  .shopping-cart-topbar {
    color: #fff;
    background: $primary-background-color;
    padding: 0 10px;
  }

  .shopping-cart-count {
    font-size: 12px;
    padding: 4px 0;
  }

  .shopping-cart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    line-height: 22px;
    padding: 10px 0;

    .shopping-cart-title-right {
      font-size: 16px;
    }
  }

  .shopping-cart-items {

  }

  .shopping-cart-content {
    height: calc(100% - 54px);
    overflow-y: auto;
  }

  .shopping-cart-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 0.5px solid rgba(183, 183, 183, 0.3);
    height: 54px;
    background: #fff;
    padding: 0 10px;

    .shopping-cart-total-amount {
      line-height: 1em;
      margin-right: 10px;

      .product-price {
        margin-left: 4px;
      }
    }
  }

  .shopping-to-pay-button {
    background: linear-gradient(-41deg, #ff4f18, #ff2000 24%, #f10000);
    border: none;
    font-weight: normal;
  }

  .shopping-cart-manage-delete-button {
    border: 1px $primary-color solid;
    font-weight: normal;
    background: transparent;
    color: $primary-color;
    padding: 4px 12px;
  }
}

.store-grouped-cart-items-card {
  padding: 10px;
  margin: 10px 0;
  background: #fff;
  border-radius: 10px;

  .cart-item-checkbox {
    margin-right: 10px;
  }

  .store-name {
    font-size: 16px;
    margin-left: 10px;
  }

  .cart-items {
    padding-bottom: 10px;

    .cart-item {
      display: flex;
      align-items: center;
      margin: 10px 0;

      &:last-child {
        margin-bottom: 0;
      }

      .cart-item-image {
        display: inline-block;
        box-shadow: 0 0 8px #f0f1f2;
        border-radius: 4px;

        img {
          width: 96px;
          height: 96px;
          padding: 4px;
        }
      }

      .cart-item-content {
        display: flex;
        margin-left: 10px;
        flex-direction: column;
        justify-content: space-between;
        padding: 2px 0;
      }

      .cart-item-name {
      }

      .cart-item-options {
        background: #F2F2F2;
        border-radius: 14px;
        padding: 4px 6px;
        display: inline-flex;
        align-items: center;
        font-size: 12px;

        .mall-icon-right {
          font-size: 12px;
        }
      }
    }
  }
}
